<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<style>
    * {
        margin: 0;
        padding: 0;
    }

    #text {
        height: 100vh;
        width: 100vw;
        display: block;
    }

    body {
        height: 100vh;
        width: 100vw;
        background-size: cover;
        background-repeat: no-repeat;
        background-image: url();
    }
</style>

<body>
    <div>
        <h3>
            <a id="text" href=""></a>
        </h3>
    </div>
    <script>
        const path = './package.json?str=' + Math.random()
        fetch(path).then(v => v.json()).then(d => {
            const v = d.version
            const name = `./raspbrrypihead_${v}_armv7l.deb`
            const href = path + name
            const a = document.querySelector('#text')
            a.innerHTML = '机械手' + v
            a.href = name
        })
    </script>
</body>

</html>